<{include file="admin/header.html"}>
<{include file="admin/left.html"}>

<form id="postform" name="postform" action="<{$formUrl}>" method="post">
<fieldset><legend><{$tpl_title}></legend>
<{if $info.cid != ""}><input type="hidden" name="cid" value="<{$info.cid}>" /><{/if}>
<div class="input_field">
	<label for="mid">分类: </label>
	<select class="dropdown" name="mid" datatype="*" nullmsg="请选择文章分类！">
        <option value="">请选择文章分类</option>
		<{foreach from=$results item=one}>  
		<option value="<{$one.mid}>" <{if $info.mid == $one.mid}> selected="selected" <{/if}>><{$one.fulltitle}></option>
		<{/foreach}>
	</select>
</div>

<div class="input_field">
	<label for="title">标题: </label>
	<input type="text" value="<{$info.title}>" name="title" class="bigfield" datatype="s2-200" errormsg="文章标题至少2个字符,最多200个字符！" />
	<span class="form_line"><input name="status" type="checkbox" id="status" value="1" <{if $info.status == "1"}> checked <{/if}> />发布</span>
	<span class="form_line"><input name="recommend" type="checkbox" id="recommend" value="1" <{if $info.recommend == "1"}> checked <{/if}> />推荐</span>
	<span class="form_line"><input name="comment" type="checkbox" id="comment" value="1" <{if $info.comment == "1"}> checked <{/if}> />评论</span>
	<span class="form_line"><input name="ping" type="checkbox" id="ping" value="1" <{if $info.ping == "1"}> checked <{/if}> />百度</span>
</div>

<div class="input_field">
	<label for="slug">缩略名: </label>
	<input type="text" value="<{$info.slug}>" name="slug" class="mediumfield" />
	<span class="form_line"> 来源 <input type="text" name="source" value="<{$info.source}>" class="mediumfield" datatype="s2-18" errormsg="文章来源至少2个字符,最多18个字符！" /></span>
	<span class="form_line"> 浏览 <input type="text" name="hits" value="<{$info.hits}>" class="tinyfield" /></span>
	<span class="form_line"> 权重 <input type="text" name="sort" value="<{$info.sort}>" class="tinyfield" /></span>
</div>

<div class="input_field">
	<label for="thumb">缩略图: </label>
	<input type="text" id="thumb" value="<{$info.thumb}>" name="thumb" class="bigfield" /><input type="button" id="thumbs" value="选择图片" />
</div>

<div class="input_field">
	<label for="keywords">关键字: </label>
	<input type="text" value="<{$info.keywords}>" name="keywords" class="bigfield" />
	<span class="field_desc">多个关键字请用半角,分割，限200字符</span>
</div>

<div class="input_field">
	<label for="overview">描述: </label>
	<textarea name="overview" rows="2" cols="50"><{$info.overview}></textarea>
	<span class="field_desc">限200字符</span>
</div>

<div class="input_field">
	<label for="url">跳转地址: </label>
	<input type="text" value="<{$info.url}>" name="url" class="bigfield" />
	<span class="form_line"><input name="jump" type="checkbox" id="jump" value="1" <{if $info.jump == "1"}> checked="checked" <{/if}> />跳转</span>
</div>

<div class="input_field">
	<label for="text">内容: </label>
	<textarea id="posteditor" name="text" style="width:666px;height:400px;" tip="请输入文章内容。" errormsg="请填写有效文章内容！" nullmsg="请输入文章内容！" datatype="*"><{$info.text}></textarea>
</div>

<div class="input_field no_margin_bottom">
	<label for="submit">&nbsp;</label>
	<input type="submit" value="提交" class="submit">
</div>
</fieldset>
</form>
<{include file="admin/footer.html"}>
